package psn.zjk.common.ddd;

import java.util.Date;
import java.util.UUID;

/**
 * @Description 领域事件，不可变，需要持久化
 * @User zero
 * @Datetime 2021/5/10 20:57
 */
public class DomainEvent {

    public String id;
    public Date occurredOn;

    public DomainEvent() {
        this.id = String.valueOf(UUID.randomUUID());
        this.occurredOn = new Date();
    }
}
